package singleton.company;

import define.Page;
import model.login.CompaniesOfUserInfo;
import model.login.UserInfo;

/**
 * Created by trek2000 on 18/8/2014.
 */
public class Company {

    private static Company company = null;
    private int position_of_all_company_feed_item = 0;
    private int position_of_company_feed_item = 0;
    private int position_of_grid_view_of_all_company_feed_item = 0;
    private int position_of_grid_view_of_company_feed_item = 0;
    private int position_of_select_company_item = 0;
    private CompaniesOfUserInfo companiesOfUserInfoSelected;
    private String COMPANY_NAME_SELECTED = "";
    public static Company getInstance() {
        if (company == null) {
            company = new Company();
        }
        return company;
    }

    public void setPositionOfAllCompanyFeedItem (int position_of_all_company_feed_item) {
        this.position_of_all_company_feed_item = position_of_all_company_feed_item;
    }

    public void setPositionOfGridViewOfAllCompanyFeedItem (int position_of_grid_view_of_all_company_feed_item) {
        this.position_of_grid_view_of_all_company_feed_item = position_of_grid_view_of_all_company_feed_item;
    }

    public void setPositionOfCompanyFeedItem (int position_of_company_feed_item) {
        this.position_of_company_feed_item = position_of_company_feed_item;
    }

    public void setPositionOfGridViewOfCompanyFeedItem (int position_of_grid_view_of_company_feed_item) {
        this.position_of_grid_view_of_company_feed_item = position_of_grid_view_of_company_feed_item;
    }

    public void setPositionOfSelectCompanyItem (int position_of_select_company_item) {
        this.position_of_select_company_item = position_of_select_company_item;
    }

    public  void setCompaniesOfUserInfoSelected (CompaniesOfUserInfo companiesOfUserInfoSelected) {
        this.companiesOfUserInfoSelected = companiesOfUserInfoSelected;
    }

    public void setCompanyNameSelected(String companyNameSelected) {
        this.COMPANY_NAME_SELECTED = companyNameSelected;
    }

    public int getPositionOfAllCompanyFeedItem () {
        return position_of_all_company_feed_item;
    }

    public int getPositionOfGridViewOfAllCompanyFeedItem () {
        return position_of_grid_view_of_all_company_feed_item;
    }

    public int getPositionOfCompanyFeedItem () {
        return position_of_company_feed_item;
    }

    public int getPositionOfGridViewOfCompanyFeedItem () {
        return position_of_grid_view_of_company_feed_item;
    }

    public int getPositionOfSelectCompanyItem () {
        return position_of_select_company_item;
    }

    public CompaniesOfUserInfo getCompaniesOfUserInfoSelected() {
        return companiesOfUserInfoSelected;
    }

    public String getCompanyNameSelected() {
        return COMPANY_NAME_SELECTED;
    }
}
